//导入封装的axios对象
import request from "@/utils/request"

//导入自定义数据类型
import type { Admin, Category, CutpageParam, Goods, User } from "@/model"

//管理员登录接口
export function login(data:Admin){
    return request.post("/admin/login", data)
}
//获得当前登录管理员的信息
export function getAdmin(){
    return request.get("/admin/admin")
}
